import Vue from 'vue'
import Vuex from 'vuex'
import createLogger from 'vuex/dist/logger'

import VappExampleModule from 'store/modules/vappExampleModule.js' // 初始化模板，正式工程请删除
import RegionModule from 'store/modules/regionModule'
import UserModule from 'store/modules/userModule'
const debug = process.env.NODE_ENV != 'production'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {

  },
  mutations: {

  },
  actions: {

  },
  modules: {
    VappExampleModule, // 初始化模板，正式工程请删除
    UserModule,
    RegionModule
  },
  strict: debug,
  plugin: debug ? [createLogger()] : []
})
